package com.ruoyi.device.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 帽子指令发送和回复记录表
 * @TableName hat_device_order_logs
 */
@TableName(value ="hat_device_order_logs")
@Data
public class HatDeviceOrderLogs implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 设备编号
     */
    private Long deviceId;

    /**
     * 发送指令唯一的编号
     */
    private String publishInstructid;

    /**
     *  PC机发送的指令
     */
    private String publishOrder;

    /**
     * 接收到的回复消息
     */
    private String replayOrder;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT )
    private Date createTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}